package com.liyiruo.controller;

import com.liyiruo.util.MyUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author liyiruo
 * @Description
 * @Date 2024/4/10 下午1:44
 */
@RestController
@RequestMapping("/test2")
public class Service2Controller {

    private static final  Logger logger = LoggerFactory.getLogger(Service2Controller.class);

    @RequestMapping("/{str}")
    public String getStr2(@PathVariable String str) {
        String s1 = MyUtil.myUtil(str);
        logger.debug("{}",s1);
        return s1;
    }
}
